package what.basic.progressbar;
import javax.swing.*;
import java.awt.*;
public class Jprogressbar {
	static void hprogressbar(){
		JFrame f=new JFrame(" add a progressbar");
		f.setSize(new Dimension(200,300));
		f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		f.setVisible(true);
		JPanel cp=new JPanel();
		f.setContentPane(cp);
		JProgressBar pb=new JProgressBar();
		cp.add(pb);
	}
	static void vprogressbar(){
		JFrame f=new JFrame(" add a progressbar");
		f.setSize(new Dimension(200,300));
		f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		f.setVisible(true);
		JPanel cp=new JPanel();
		f.setContentPane(cp);
		JProgressBar pb=new JProgressBar(JProgressBar.VERTICAL);
		cp.add(pb);
	}
	public static void main(String[] args) {
		hprogressbar();
		vprogressbar();
	}

}
